using Net35.Xrm.Sdk.Query;
using System;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class RetrieveRequest : OrganizationRequest
	{
		public EntityReference Target
		{
			get
			{
				if (base.Parameters.Contains("Target"))
				{
					return (EntityReference)base.Parameters["Target"];
				}
				return null;
			}
			set
			{
				base.Parameters["Target"] = value;
			}
		}
		public ColumnSet ColumnSet
		{
			get
			{
				if (base.Parameters.Contains("ColumnSet"))
				{
					return (ColumnSet)base.Parameters["ColumnSet"];
				}
				return null;
			}
			set
			{
				base.Parameters["ColumnSet"] = value;
			}
		}
		public RelationshipQueryCollection RelatedEntitiesQuery
		{
			get
			{
				if (base.Parameters.Contains("RelatedEntitiesQuery"))
				{
					return (RelationshipQueryCollection)base.Parameters["RelatedEntitiesQuery"];
				}
				return null;
			}
			set
			{
				base.Parameters["RelatedEntitiesQuery"] = value;
			}
		}
		public RetrieveRequest()
		{
			base.RequestName = "Retrieve";
			this.Target = null;
			this.ColumnSet = null;
		}
	}
}
